package com.lhwb.escsvinput.controller;

import java.io.IOException;


import com.lhwb.escsvinput.service.ExcelService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ImportController {

    @Resource
    private ExcelService excelService;

    @PostMapping("/import")
    public void importA() throws IOException {
        excelService.readExcelAndImport();
    }
}
